package main

import (
	"dou/api"
	"dou/config"
	"dou/initalize/mysql"
	"dou/initalize/rabbit"
	"dou/initalize/redis"
	"github.com/gin-gonic/gin"
)

func main() {
	config.InitViper()
	mysql.InitMysql()
	redis.InitRedis()
	rabbit.InitRabbitMq()

	r := gin.Default()

	api.Router(r)

	r.Run(":10002") // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
}
